//
//  WeekCollectionViewCell.m
//  Run
//
//  Created by sxz on 16/4/13.
//  Copyright © 2016年 BetaTheta. All rights reserved.
//

#import "WeekCollectionViewCell.h"

@implementation WeekCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
//        self.weekImage = [UIImageView new];
//        self.weekImage.contentMode = UIViewContentModeScaleAspectFill;
//        [self.contentView addSubview:_weekImage];
        self.weekLabel = [UILabel new];
        _weekLabel.adjustsFontSizeToFitWidth = YES;
//        _weekLabel.font = [UIFont systemFontOfSize:10];
        _weekLabel.layer.cornerRadius = 15;
        _weekLabel.clipsToBounds = YES;
        _weekLabel.backgroundColor = [UIColor grayColor];
        _weekLabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:_weekLabel];
        
        
    }
    return self;
}


- (void)layoutSubviews {
    
    [super layoutSubviews];
    
    self.weekLabel.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height);
    
}


@end
